package com.ruoyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.order.mapper.SrvTickingformMapper;
import com.ruoyi.order.domain.SrvTickingform;
import com.ruoyi.order.service.ISrvTickingformService;

/**
 * 反馈单Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-29
 */
@Service
public class SrvTickingformServiceImpl implements ISrvTickingformService 
{
    @Autowired
    private SrvTickingformMapper srvTickingformMapper;

    /**
     * 查询反馈单
     * 
     * @param srvTfcode 反馈单ID
     * @return 反馈单
     */
    @Override
    public SrvTickingform selectSrvTickingformById(String srvTfcode)
    {
        return srvTickingformMapper.selectSrvTickingformById(srvTfcode);
    }

    /**
     * 查询反馈单列表
     * 
     * @param srvTickingform 反馈单
     * @return 反馈单
     */
    @Override
    public List<SrvTickingform> selectSrvTickingformList(SrvTickingform srvTickingform)
    {
        return srvTickingformMapper.selectSrvTickingformList(srvTickingform);
    }

    /**
     * 新增反馈单
     * 
     * @param srvTickingform 反馈单
     * @return 结果
     */
    @Override
    public int insertSrvTickingform(SrvTickingform srvTickingform)
    {
        return srvTickingformMapper.insertSrvTickingform(srvTickingform);
    }

    /**
     * 修改反馈单
     * 
     * @param srvTickingform 反馈单
     * @return 结果
     */
    @Override
    public int updateSrvTickingform(SrvTickingform srvTickingform)
    {
        return srvTickingformMapper.updateSrvTickingform(srvTickingform);
    }

    /**
     * 批量删除反馈单
     * 
     * @param srvTfcodes 需要删除的反馈单ID
     * @return 结果
     */
    @Override
    public int deleteSrvTickingformByIds(String[] srvTfcodes)
    {
        return srvTickingformMapper.deleteSrvTickingformByIds(srvTfcodes);
    }

    /**
     * 删除反馈单信息
     * 
     * @param srvTfcode 反馈单ID
     * @return 结果
     */
    @Override
    public int deleteSrvTickingformById(String srvTfcode)
    {
        return srvTickingformMapper.deleteSrvTickingformById(srvTfcode);
    }
}
